﻿#ifndef WIDGET_H
#define WIDGET_H

#include "servicecontrolthread.h"

#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
signals:
    void signal_startService();
    void signal_stopService();
    void signal_installService();
    void signal_uninstallService();
public slots:
    void slot_serviceState(int state,QString message);
private slots:
    void on_installBtn_clicked();
    void on_switchBtn_clicked();

    void on_serverName_editingFinished();

    void on_serverDescription_editingFinished();

    void on_settingBtn_clicked();

private:
    Ui::Widget *ui;
    ServiceControlThread *controlThread;
    int serverState;
};
#endif // WIDGET_H
